<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>书籍管理——书籍编辑</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small th:text="${pageTitle}"></small>
                </h1>
            </div>
        </div>
    </div>
    <div style="width:100%;text-align:center">
        <form th:action="@{/book/save}" method="post">
            <input type="hidden" name="bookID" th:value="${book.bookID}">
            <div class="form-body">
                <div class="form-group">
                    书籍名称:<input type="text" name="bookName" class="form-control" th:value="${book.bookName}" placeholder="请输入书籍名称">
                </div>
                <div class="form-group">
                    书籍数量:<input type="number" name="bookCounts" class="form-control" th:value="${book.bookCounts}" placeholder="请输入书籍数量">
                </div>
                <div class="form-group">
                    书籍描述:<input type="text" name="detail" class="form-control" th:value="${book.detail}" placeholder="请输入书籍描述">
                </div>
            </div>
            <div class="form-actions bottom">
                <div class="row">
                    <button type="submit" class="btn green">提交</button>
                    <a th:href="@{/book/bookList}" class="btn default">取消</a>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>